package org.example.seckill.scheduled;

import lombok.extern.slf4j.Slf4j;
import org.example.seckill.service.SeckillScheduledService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class SeckillScheduled {

    @Autowired
    private SeckillScheduledService seckillScheduledService;

//    @Scheduled(cron = "0 * * * * ?")
//    public void upRegularSeckill() throws InterruptedException {
//        log.info("秒杀商品上架开始执行......");
//        seckillScheduledService.upRegularSeckill();
//    }
}
